package test.testA;

import com.spring.annotation.*;
import test.config.Config2;
import test.testB.B;
import com.spring.util.SpringUtil;

@Component
@Configuration
@ComponentScan("test")
public class A {
	@Autowired
	private B b;
	
	
	public void testA(){
		System.out.println("A事务");
		
		System.out.println("调用B, 看下是否被代理");
		b.testA();
		
		Config2 configDemo = SpringUtil.getBean("config2", Config2.class);
		System.out.println(configDemo);
	}
}
